# -*- coding:UTF-8 -*-

# import SqlCollect
# import ConnMySql
# import yaml
# import InitDB
# import FindAndDelete
# from JKlog import *

#验证SQL语句拼接
# sql = SqlCollect.SqlCollect()
# action = SqlCollect.Action
# selete = action['select'].value
# delete = action['delete'].value
# print selete + sql.sqlacc01 + '233'
# print delete + sql.sqlacc01 + '233'

#读取文件验证
# fr = open('Config.yml', 'r')
# print fr
# fconfig = yaml.load(fr)
# print fconfig
# realConfig = fconfig['testnf']
# print realConfig

# 数据库连接
# logger = JKLogger('eg')
# memdb = InitDB.dbInit("testnf").initMysql("mem")
# sqlmem = selete + sql.sqlmer01 + '30'
# # FindAndDelete.findAndDelete().sqlFind(logger,memdb,sqlmem)
# a = memdb.fetch_all(sqlmem)
# if len(a) == 1:
#     print a[0]['ID']
# memdb.close()

#验证python赋值
# sql = 'select a from b'
# print sql
# sql = 'select c from D'
# print sql

#验证monogo库数据
# mongomember01 = InitDB.dbInit("testnf").initMonogo("question")
# mongomember02 = InitDB.dbInit("testnf").initMonogo("question_msg")
#
# result = mongomember01.find("uid","581")
# if result:
#     for i in result:
#         print i

# print repr(result).decode('unicode-escape')

#验证ES的连接
# esdb = InitDB.dbInit("testnf").initES()
# result = FindAndDelete.findAndDelete().esfind(logger,esdb,"es_hospital","uid","30046")
